#include "update.h"
#include"last.h"
deque<snack> update_(deque<snack> v)
{
	for (int i = 1; i < v.size(); i++)
	{
		v[i] = last(v[i - 1],v[i-1].spd_x,v[i-1].spd_y);
	}

	return v;
}
